package com.wteam.Service;

import com.wteam.PoJo.DO.Postwork;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wteam.PoJo.DTO.CommentDTO;
import com.wteam.PoJo.DTO.PageQuery;
import com.wteam.PoJo.DTO.PostworkDTO;
import com.wteam.PoJo.DTO.ReplyCommentDTO;
import com.wteam.PoJo.VO.PostworkVO;
import com.wteam.until.Result;

import java.util.List;

/**
 * <p>
 * 帖子表 服务类
 * </p>
 *
 * @author author
 * @since 2024-07-16
 */
public interface IPostworkService extends IService<Postwork> {

    Result buyorder(PostworkDTO postworkDTO);

    Result viewpostwork(PageQuery pageQuery);

    Result compostwork(CommentDTO commentDTO);

    Result postworkbyId(Long parentId);

    Result replycomment(ReplyCommentDTO replyCommentDTO);

    Result viewreplycomment(Long commentid, PageQuery pageQuery);

    Result replydelete(Long id);

    Result deletecompostwork(Long id);

    Result<List<PostworkVO>> viewmypostwork(PageQuery pageQuery);

    Result deletemypostwork(Long parentId);

    Result<List<PostworkVO>> followpostwork(PageQuery pageQuery);
}
